import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqPassToHelper } from "./SeqPassToHelper";
import { SPoint } from "./SPoint";
type int = number;
//class SPassPoint
    
    export  class SPassPoint
    {
       

        public __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.passPointId);
            arg1.writeInt(this.mapId);
            arg1.writeInt(this.type);
            this.point.__write(arg1);
            arg1.writeString(this.name);
            SeqPassToHelper.write(arg1, this.passTo);
            arg1.writeInt(this.process);
            return;
        }

        public __read(arg1: SerializeStream): void
        {
            this.passPointId = arg1.readInt();
            this.mapId = arg1.readInt();
            this.type = arg1.readInt();
            this.point = new SPoint();
            this.point.__read(arg1);
            this.name = arg1.readString();
            this.passTo = SeqPassToHelper.read(arg1);
            this.process = arg1.readInt();
            return;
        }

        public /* var */passPointId: int;

        public /* var */mapId: int;

        public /* var */type: int;

        public /* var */point: SPoint;

        public /* var */name: string;

        public /* var */passTo: Array<any>;

        public /* var */process: int;
    }
